/*
 * Created: Author: Aléx Carvalho / Date: Mar 16, 2015
 * 
 * Changed: $Author: ac280593@gmail.com $ / $Date: 2015-06-11 01:31:49 -0300 (Thu, 11 Jun 2015) $
 */
package com.cpm.view.zk;

import com.cpm.view.Icon;
import org.zkoss.zk.ui.event.EventListener;

public class MenuAction {
    
    public static final int ITEM_WIDTH = 90;
    public static final int ITEM_HEIGHT = 30;
    
    private final Icon icon;
    private final String label;
    private final EventListener clickListener;
    private String tooltip;
    
    public MenuAction(Icon icon, String label, EventListener clickListener) {
        this.icon = icon;
        this.label = label;
        this.clickListener = clickListener;
    }

    public void setTooltip(String tooltip) {
        this.tooltip = tooltip;
    }

    public String getTooltip() {
        return tooltip;
    }
    
    public Icon getIcon() {
        return icon;
    }

    public String getLabel() {
        return label;
    }

    public EventListener getClickListener() {
        return clickListener;
    }
}
